﻿using Abp;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.Timing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace KDS.Mes.Mes.Factorys
{
    /// <summary>
    /// 工厂信息
    /// </summary>
    [Table("T_BasicFactory")]
   
    public class Factory : FullAuditedEntity
    {
        /// <summary>
        /// 工厂名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string FactoryName { get; set; }

        /// <summary>
        /// 工厂代码
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string FactoryCode { get; set; }

        public Factory(string factoryName, string factoryCode)
        {
            FactoryName = factoryName;
            FactoryCode = factoryCode;
          
        }

        public Factory()
        {

        }
    }
}
